package cn.itsource.blog.domain.articletype;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Data
public class ArticleType {
    public Integer id;
    public String typeName;
    public Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date updateTime;
    public Integer parentId;
    public String parentName;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    List<ArticleType> children =new ArrayList<>();
}
